'' If WIN32S.INI specifies OLE2 Setup=0, then force OLE2 file overwrite
IF ((sz$ <> "1") OR (szOleNewVer$ > szOleOldVer$)) THEN
OLEONLY% = 1
OLE2_32% = 1
GOTO WELCOME
END IF
IF OLE2_16% OR OLE2AUTO_16 THEN
OLEONLY% = 1
GOTO WELCOME
END IF
END IF
END IF
WIN32ENABLED% = 1
GOTO QUIT
WELCOME:
i% = SetCuiFlags(OLEONLY%, OLE16RUNAPP%)
GETWIN32SPATH:
IF PagingEnabled() = 0 THEN
i% = DoMsgBox("Use the Control Panel 386 Enhanced icon and configure Windows using the Virtual Memory option.", "Win32s requires Virtual Memory", MB_TASKMODAL+MB_ICONHAND+MB_OK)
ExitCode% = EXITFAILURE '' Enhanced mode but not paging
GOTO QUIT
END IF
IF ShareEnabled() = 0 THEN
i% = DoMsgBox( "File-sharing must be enabled. Run SHARE.EXE before starting Windows or add SHARE.EXE to your AUTOEXEC.BAT file.", "Win32s Setup: SHARE.EXE is not loaded", MB_TASKMODAL+MB_ICONEXCLAMATION+MB_OK)
i% = DoMsgBox("Win32s is not properly configured and Win32s Setup must be run again.", "Unable to Restart Windows", MB_ICONEXCLAMATION+MB_OK+MB_TASKMODAL)
END IF
ENDIF
END
'' Fatal error handler for error message routine
ERRQUIT:
i% = DoMsgBox("Setup sources were corrupted!", "Setup Message", MB_OK+MB_TASKMODAL+MB_ICONHAND)
END
'' Bypass run-time errors. Let final dialog box display fatal error message.